package tolgahan.albayrak.as3.reflection
{
	import tolgahan.albayrak.as3.reflection.converters.DateConverter;
	import tolgahan.albayrak.as3.reflection.converters.IntConverter;
	import tolgahan.albayrak.as3.reflection.converters.NumberConverter;
	import tolgahan.albayrak.as3.reflection.converters.StringConverter;
	import tolgahan.albayrak.as3.reflection.converters.UIntConverter;

	public class Primitives
	{
		public static const IntType:Type = Type.GetType(int);
		public static const UIntType:Type = Type.GetType(uint);
		public static const NumberType:Type = Type.GetType(Number);
		public static const StringType:Type = Type.GetType(String);
		public static const DateType:Type = Type.GetType(Date);
		
		private static const converters:Array =
		[
			Type.RegisterTypeConverter(StringType, new StringConverter),
			Type.RegisterTypeConverter(UIntType, new UIntConverter),
			Type.RegisterTypeConverter(DateType, new DateConverter),
			Type.RegisterTypeConverter(NumberType, new NumberConverter),
			Type.RegisterTypeConverter(IntType, new IntConverter)
		];
	}
}